{include file="public/head"}
<style>
    .header{
        width: 100%;
    }

    .header .title{
        width: 100%;
        padding: 2rem 0 1rem 2rem;
        font-size: 1rem;
    }

    .header .centent {
        padding: 1rem 0 1rem 2rem;
        font-size: 1.4rem;
    }

    .header .centent input {
        outline: none;
        border: none;
        font-size: 1.7rem;
    }

    .header .tips {
        padding: .5rem 0 1rem 2rem;
        font-size: .5rem;
        color: silver;
    }

    .list{
        width: 100%;
        height: 15.5rem;
        padding: 1rem;
    }

    .list ul:first-child{
        height: 1.5rem;
        line-height: 1.5rem;
        overflow: hidden;
    }

    .list ul:last-child{
        height: calc(100% - 1.5rem);
        overflow-y: scroll;
    }

    .list li{
        display: flex;
        justify-content: space-between;
        align-items: center;
        line-height: 2;
        font-size: 14px;
    }

    .list li span {
        width: 33.33%;
        display: inline-block;
    }

    .list li span:last-child{
        text-align: right;
    }

    .list li span:nth-child(2) {
        text-align: center;
    }

    .list .top {
        font-weight: 700;
    }

    .sub{
        width: 95%;
        background-color: #f23030;
        border: none;
        border-radius: .1rem;
        font-weight: 600;
        color:white;
        margin: 2rem 0 1rem 2.5%;
        padding: .5rem;
    }
</style>
<body>

<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="{:url('User/FeedbackAdd')}" class="aui-header-item">
        <i class="aui-icon aui-icon-back-white"></i>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="aui-header-center-logo">
            <div class="aui-car-white-Typeface" style="color:black;font-weight: bold;">反馈记录</div>
        </div>
    </div>
    <a href="javascript:" class="aui-header-item-icon" style="min-width:0">

    </a>
</header>

<section class="aui-settle-content">
    <div class="aui-dri"></div>
    <div class="list">
        <ul class="top">
            <li>
                <span>反馈时间</span>
                <span>当前状态</span>
                <span>记录操作</span>
            </li>
        </ul>
        <ul>
            {volist name="Feedback" id="v"}
            <li>
                <span>{$v.add_time|date="m-d H:i",###}</span>
                {if condition="$v.status eq 0"}<span style="color:silver">未回复</span>
                {elseif condition="$v.status eq 1"}<span style="color:green">已回复</span>
                {/if}
                <span>
                    <a href="{:url('User/FeedbackDetail',['id'=>$v.id])}" style="background-color: #0d8ddb;padding: .1rem .3rem;border-radius: 1px;color: white">查看详情</a>
                </span>
            </li>
            {/volist}
        </ul>
    </div>
</section>
<script type="text/javascript" src="__STATIC__/User/js/jquery.min.js"></script>
<script>
    $(function () {


        $(".sub").on('click',function () {
            var num = $("#num").val();
            var to_type = $("input[name='to_type']:checked").val();
            if(num <= 0 || num ==""){
                alert('请输入提现金额');
                return false;
            }

            var password = prompt("请输入支付密码");
            if (password!=null && password!=""){
                $.ajax({
                    type:"POST",
                    url:"{:url('User/UserWithdraw')}",
                    data:{
                        num:num,
                        to_type:to_type,
                        password:password
                    },
                    dataType:"json",
                    success:function(data){
                        if(data.status == 1){
                            alert(data.message);
                            window.location.reload();
                        }else if(data.status == 2){
                            alert(data.message);
                            window.location.href="{:url('User/UserBank')}";
                        }else{
                            alert(data.message);
                        }
                    }
                })
            }else{
                alert("请输入支付密码")
            }
        })
    })
</script>
</body>
</html>